<template>
	<view>
		<view class="headImg">
			<view class="infoList">
				<view class="infoImg">
					<image src="../../static/images/indexBar/1.png"></image>
				</view>

				<view class="infoName">陈小明</view>
			</view>





		</view>
		<view>

			<view class="inputContent">
				<view class="inputLeft">姓名</view>
				<view class="inputRight">李大柱</view>
			</view>

			<view class="inputContent">
				<view class="inputLeft">身份证号</view>
				<view class="inputRight">130131189007063636</view>
			</view>
			<view class="inputContent">
				<view class="inputLeft">注册手机号</view>
				<view class="inputRight">13381151023</view>
			</view>
			<view class="inputContent">
				<view class="inputLeft">省份</view>
				<view class="inputRight">合肥</view>
			</view>
			<view class="inputContent">
				<view class="inputLeft">服务包进度</view>
				<view class="inputRight" style="color: #3885DB;" @tap="goLook">查看</view>
			</view>

			<view class="inputContent">
				<view class="inputLeft">详细地址</view>
				<view class="inputRight">河南省南阳市宛城区理工学院</view>
			</view>



		</view>



		<view class="btnView">
			<view class="btnLeft" @tap="terminate">解约</view>
			<view class="btnRight" @tap="honour">履约</view>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			goLook(){
				
				uni.navigateTo({
					url:'/pages/Contract/look'
				})
			},
			terminate() {
				uni.showModal({
					title: '提示',
					content: '你确定要解约吗?',
					cancelText: "取消", // 
					confirmText: "确定",
					showCancel: true,
					confirmColor: '#999',
					cancelColor: '#999',
					success: (res) => {
						if (res.confirm) {
							//点击了确定
						} else {
							//点击了取消
						}
					}
				})
			},

			honour() {
				uni.showModal({
					title: '提示',
					content: '你确定要履约吗?',
					cancelText: "取消", // 
					confirmText: "确定",
					showCancel: true,
					confirmColor: '#999',
					cancelColor: '#999',
					success: (res) => {
						if (res.confirm) {
							//点击了确定
						} else {
							//点击了取消
						}
					}
				})
			}

		}
	}
</script>

<style>
	.btnRight {
		width: 260rpx;
		height: 80rpx;
		background: #73A8E3;
		border-radius: 40rpx;
		display: flex;
		justify-content: center;
		align-items: center;



		font-size: 30rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		color: #FFFFFF;
	}

	.btnLeft {
		width: 260rpx;
		height: 80rpx;
		border: 2rpx solid #3885DB;
		border-radius: 40rpx;
		display: flex;
		justify-content: center;
		align-items: center;


		font-size: 30rpx;
		font-family: Source Han Sans CN;
		font-weight: 500;
		color: #73A8E3;
	}

	.btnView {
		display: flex;
		justify-content: space-around;
		margin-top: 100rpx;
	}

	.inputLeft {
		font-size: 30rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		color: #333333;
	}

	.inputRight {

		font-size: 26rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		color: #989898;
	}

	.inputContent {
		display: flex;
		justify-content: space-between;
		padding: 38rpx 40rpx 38rpx 38rpx;
		border-bottom: 1rpx solid #DCDCDC;
	}

	.infoName {
		font-size: 36rpx;
		font-family: Source Han Sans CN;
		font-weight: 500;
		color: #FFFFFF;
		display: flex;
		align-items: center;
		margin-left: 30rpx;
	}

	.infoImg image {
		width: 107rpx;
		height: 106rpx;
		border-radius: 50%;
	}

	.infoList {
		display: flex;
		padding-top: 50rpx;
		margin-left: 40rpx;
	}

	.headImg {
		width: 100%;
		height: 220rpx;
		background-image:url(../../static/images/infoback.png);
	}
</style>
